﻿using PSE.Framework.Communication.Configuration.Adapters;
using System.Configuration;
using PSE.Framework.Communication.Configuration.Adapters.Tgp;

namespace PSE.Framework.Communication.Configuration.Tgp
{
    public class TgpInputConfiguration : InputAdapterConfiguration
    {
        [ConfigurationProperty("actions", IsRequired = true)]
        public new TgpInputAdapterActionConfigurationCollection Actions
        {
            get
            {
                return (TgpInputAdapterActionConfigurationCollection)base["actions"];
            }
        }

        [ConfigurationProperty("authenticationRetry", IsRequired = false, DefaultValue = 10)]
        public int AuthenticationRetry
        {
            get
            {
                return (int)base["authenticationRetry"];
            }
        }

        [ConfigurationProperty("authenticationRetryWait", IsRequired = false, DefaultValue = 3000)]
        public int AuthenticationRetryWait
        {
            get
            {
                return (int)base["authenticationRetryWait"];
            }
        }
    }
}
